<template>
  <div>
    <a @click="dispatchClick('del')" v-if="allPermissions.verListSettingsDel">{{ $t("versionIndex.verListSettingsDel") }}</a>
    <Divider v-if="from=='admin'" type="vertical" />
    <a v-if="from=='admin'" @click="dispatchClick('adminEdit')">{{ $t("versionIndex.verListSettingsEdit") }}</a>
    <Divider v-if="from!='admin'&&allPermissions.verListSettingsDel&&allPermissions.verListSettingsEdit" type="vertical" />
    <a v-if="from!='admin'&&allPermissions.verListSettingsEdit" @click="dispatchClick('edit')">{{ $t("newDevices.jurisdiction") }}</a>
  </div>
</template>

<script>
export default {
  props: {
    row: Object,
    allPermissions: Object,
    from:String
  },

  methods: {
    dispatchClick (name) {
      this.$emit('itemClick', name)
    },
  },
}
</script>
